/**  
 * @Title: TestClient.java
 * @Package: com.itic.appbase.applications.webservice.cxf.client
 * @author: idong
 * @date: May 20, 2015 3:45:51 PM
 * @version: V1.0  
 */

package com.itic.appbase.applications.webservice.cxf.client;

import com.itic.appbase.applications.webservice.cxf.sei.HelloService;

import org.apache.cxf.jaxws.JaxWsProxyFactoryBean;

/**
 * <p>Company: itic</p>
 * 
 * @author: idong
 * @date: May 20, 2015 3:45:51 PM
 * @version: V1.0
 */
public class TestClient {
    public static void main(String[] args) {
        JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
        factory.setServiceClass(HelloService.class);
        factory.setAddress("http://localhost:8080/appbase-r1/ws/hello");
        HelloService hs = (HelloService) factory.create();
        System.out.println("[result]:" + hs.getUserInfo("test").getUsername());
    }
}
